@include theme {

  $bg: rgba(black, 0.06);
  $headSize: 60px;
  $menuSize: 275px;
  $anchorSize: 275px;

  $menuPadding: 24px;

  .doc-home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: $headSize;
    display: flex;
    align-items: center;
    box-shadow: $boxshadow;
    background-color: white;
    z-index: 20;
    font-family: "Comic Sans MS";

    & > div {
      &:first-child {
        width: $menuSize;
        margin: 0 8px;
        font-weight: 600;
        font-size: 38px;
        text-align: center;
      }

      &:last-child {
        width: $anchorSize;
        margin: 0 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;

        .pl-icon {
          font-size: 32px;
          cursor: pointer;

          & + .pl-icon {
            margin-left: 8px;
          }
        }
      }

      &:nth-child(2) {
        flex: 1;
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;

        & > div:last-child {
          button {
            height: 28px;
            width: 28px;
            min-width: auto;
            margin-left: 8px;
            border-radius: 2px;
            border: none;
          }
        }
      }
    }
  }

  .doc-home-menu {
    position: fixed;
    top: $headSize + 8px;
    bottom: 8px;
    left: 8px;
    width: $menuSize;
    background-color: white;
    box-shadow: $boxshadow;
    border-radius: 4px;

    ul {
      margin: 0;
      padding: 0;

      li, div {
        list-style: none;
        font-size: 14px;
        box-sizing: border-box;
        line-height: 36px;
        font-family: "Comic Sans MS";

        &.doc-home-menu-group {
          color: rgba(0, 0, 0, .45);
          font-size: 14px;
          padding: 8px $menuPadding;
          transition: all .3s;
          position: relative;
          margin-bottom: 12px;

          &:after {
            content: '';
            position: absolute;
            background: #f0f0f0;
            display: block;
            height: 1px;
            right: $menuPadding;
            left: $menuPadding;
            bottom: 4px;
          }
        }

        &.doc-home-menu-link {
          cursor: pointer;
          padding-left: $menuPadding;
          transition: background-color 150ms linear;

          &:not(:hover):not(.doc-home-menu-link-active) {
            &, & span.doc-home-menu-tip {
              color: #3f536e;
            }
          }

          &:hover {
            background-color: $bg;
          }

          span.doc-home-menu-tip {
            font-size: 12px;
            margin-left: 1em;
            opacity: 0.45;
            font-style: italic;
          }

          span.all-char {
            font-style: italic;
          }

          &.doc-home-menu-link-active {
            padding-left: 6px;

            & > .pl-icon {
              margin-right: 4px;
            }

            position: relative;

            &::before {
              content: '';
              position: absolute;
              background: linear-gradient(45deg, rgba(254, 172, 94, 0.25), rgba(199, 121, 208, 0.25), rgba(75, 192, 200, 0.25));
              top: 0;
              bottom: 0;
              left: 3px;
              right: 3px;
              border-radius: 4px;
            }
          }
        }
      }
    }

    ul.doc-home-menu-list {
      padding: 12px 0 200px 0;
    }

    & > .pl-scroll {
      &:before, &:after {
        position: absolute;
        left: 0;
        right: 0;
        height: 50px;
        content: '';
        pointer-events: none;
        z-index: 9;
      }

      &:before {
        top: 0;
        background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0));
      }

      &:after {
        bottom: 0;
        background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
      }
    }
  }

  .doc-content {
    padding-top: $headSize + 8;
    padding-left: $menuSize + 16;
    padding-right: $anchorSize +16;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    background-color: $bg;

    .doc-page-full {
      height: calc(100vh - 60px - 16px);
      background-color: white;
      border-radius: 4px;
      box-shadow: $boxshadow;
      padding-bottom: 0;
    }
  }

  .doc-home-anchor {
    position: fixed;
    top: $headSize + 8;
    bottom: 8px;
    right: 8px;
    width: $anchorSize;
    background-color: white;
    border-radius: 4px;
    box-shadow: $boxshadow;

    ul.doc-home-anchor-list {
      margin: 0;
      padding: 20px 0;

      li {
        list-style: none;
        padding: 6px 8px 6px 48px;
        box-sizing: border-box;
        color: $icc;
        position: relative;
        font-size: 12px;
        cursor: pointer;

        .doc-home-anchor-index {
          font-style: italic;
        }

        .doc-home-anchor-tag {
          position: absolute;
          top: 0;
          bottom: 0;
          left: 8px;
          width: 36px;
          display: flex;
          align-items: center;
          justify-content: center;

          .doc-home-anchor-tag-inner {
            width: 12px;
            height: 12px;
            border-radius: 99px;
            background-color: rgba($colorPrimary, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 300ms linear;

            &:after {
              width: 4px;
              height: 4px;
              border-radius: 99px;
              background-color: $colorPrimary;
              content: '';
              transition: background-color 300ms linear;
              z-index: 1;
            }
          }

          &:after {
            position: absolute;
            left: calc(50% - 1px);
            top: 0;
            bottom: 0;
            border-left: dashed 1px rgba($colorPrimary, 0.2);
            content: '';
          }
        }

        &:hover, &.doc-home-anchor-active {
          text-decoration: underline;
          color: $colorPrimary;
        }

        &.doc-home-anchor-active {
          .doc-home-anchor-tag-inner {
            background-color: $colorPrimary;

            &:after {
              width: 10px;
              height: 10px;
              background: white;
            }
          }
        }
      }
    }
  }

  .app-navigator-page {
    opacity: 0;
    transition: all 500ms linear;

    &.app-navigator-page-mounted {
      opacity: 1;
    }
  }

  .doc-line {
    margin-bottom: 8px;
    margin-left: 0;
    display: flex;
    align-items: center;

    & > * {
      & + * {
        margin-left: 8px !important;
      }
    }
  }
}
